import service from '@/utils/request'

// @Tags SpleenNumber
// @Summary 创建脾型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpleenNumber true "创建脾型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /spleenNumber/createSpleenNumber [post]
export const createSpleenNumber = (data) => {
  return service({
    url: '/spleenNumber/createSpleenNumber',
    method: 'post',
    data
  })
}

// @Tags SpleenNumber
// @Summary 删除脾型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpleenNumber true "删除脾型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /spleenNumber/deleteSpleenNumber [delete]
export const deleteSpleenNumber = (params) => {
  return service({
    url: '/spleenNumber/deleteSpleenNumber',
    method: 'delete',
    params
  })
}

// @Tags SpleenNumber
// @Summary 批量删除脾型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除脾型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /spleenNumber/deleteSpleenNumber [delete]
export const deleteSpleenNumberByIds = (params) => {
  return service({
    url: '/spleenNumber/deleteSpleenNumberByIds',
    method: 'delete',
    params
  })
}

// @Tags SpleenNumber
// @Summary 更新脾型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpleenNumber true "更新脾型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /spleenNumber/updateSpleenNumber [put]
export const updateSpleenNumber = (data) => {
  return service({
    url: '/spleenNumber/updateSpleenNumber',
    method: 'put',
    data
  })
}

// @Tags SpleenNumber
// @Summary 用id查询脾型编号主档
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SpleenNumber true "用id查询脾型编号主档"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /spleenNumber/findSpleenNumber [get]
export const findSpleenNumber = (params) => {
  return service({
    url: '/spleenNumber/findSpleenNumber',
    method: 'get',
    params
  })
}

// @Tags SpleenNumber
// @Summary 分页获取脾型编号主档列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取脾型编号主档列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /spleenNumber/getSpleenNumberList [get]
export const getSpleenNumberList = (params) => {
  return service({
    url: '/spleenNumber/getSpleenNumberList',
    method: 'get',
    params
  })
}
